//
//  QDSicknessCaseBottomView.m
//  simulateQuickDoctor
//
//  Created by locklight on 17/3/26.
//  Copyright © 2017年 PipiXia. All rights reserved.
//

#import "QDSicknessCaseBottomView.h"
#import "CZAdditions.h"

@interface QDSicknessCaseBottomView ()

/* 添加病例按钮 */
@property (strong, nonatomic) UIButton *button;

@end

@implementation QDSicknessCaseBottomView

- (instancetype)init {
    self = [super init];
    if (self) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI {
    [self addSubview:self.button];
    

//    self.button = [UIButton cz_textButton:@"   添加病例" fontSize:18 normalColor:[UIColor yellowColor] selectedColor:[UIColor redColor]];
   //    设置button文字与颜色
    [self.button setTitle:@"😷添加病例😷" forState:UIControlStateNormal];
    
    [self.button setTitleColor:[UIColor yellowColor] forState:UIControlStateNormal];
    
    [self.button setImage:[UIImage imageNamed:@"add_40x40"] forState:UIControlStateNormal];
    self.button.enabled = NO;
    
    [self.button mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(self);
    }];
}

#pragma mark - 懒加载button
- (UIButton *)button {
    if (!_button) {
        _button = [[UIButton alloc] init];
    }
    return _button;
}

@end
